<?php
use yii\helper\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\Student */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="student-form">
    <?php
    if ($model->hasErrors()) {
        \yii\bootstrap\Alert::begin(
            [
                'options' => [
                    'class' => 'alert-warning',
                ]
            ]
        );
        echo Html::errorSummary($model);
        \yii\bootstrap\Alert::end();
    }
    ?>

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'xs_name')->textInput(['maxlength' => true]) ?>
    
    <?= $form->field($model, 'xs_xb')->radioList(['男'=>'男','女'=>'女'])?>
     
     

    <?= $form->field($model, 'xs_age')->textInput() ?>

    <?= $form->field($model, 'xs_height')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'xs_weight')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'yey_id')->textInput() ?>

    <?= $form->field($model, 'bj_id')->textInput() ?>

    <?= $form->field($model, 'ls_id')->textInput() ?>

 


    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
        <?= Html::a('返回',['index'], ['class' =>'btn btn-warning' ]) ?>

    </div>

    <?php ActiveForm::end(); ?>

</div>
